<!DOCTYPE html>
<html lang="zh-CN" data-i18n-page-title="register">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册 - 工作推荐App</title>
    <link rel="stylesheet" href="../css/style.css">
    <link rel="stylesheet" href="../css/auth.css">
</head>
<body class="page">
    <div class="page-content auth-page">
        <div class="back-button">
            <img src="../images/back.svg" alt="返回" class="back-icon">
            <span data-i18n="back">返回</span>
        </div>
        
        <div class="auth-header">
            <div class="logo-container">
                <img src="../images/app-logo.svg" alt="App Logo" class="app-logo">
            </div>
            <h1 data-i18n="create_account">创建账号</h1>
            <p data-i18n="start_journey">注册新账号，开始您的求职之旅</p>
        </div>
        
        <form id="register-form" class="auth-form">
            <div class="form-group">
                <label for="name" data-i18n="name">姓名</label>
                <input type="text" id="name" class="form-control" data-i18n-placeholder="name" placeholder="请输入姓名" required>
            </div>
            
            <div class="form-group">
                <label for="email" data-i18n="email">邮箱</label>
                <input type="email" id="email" class="form-control" data-i18n-placeholder="email" placeholder="请输入邮箱" required>
            </div>
            
            <div class="form-group">
                <label for="password" data-i18n="password">密码</label>
                <div class="password-input">
                    <input type="password" id="password" class="form-control" data-i18n-placeholder="password" placeholder="请输入密码" required>
                    <span class="toggle-password">
                        <img src="../images/eye.svg" alt="显示密码" class="eye-icon">
                    </span>
                </div>
                <div class="password-strength">
                    <div class="strength-bar">
                        <div class="strength-level" id="strength-level"></div>
                    </div>
                    <span class="strength-text" id="strength-text"><span data-i18n="password_strength">密码强度</span>: <span id="strength-value" data-i18n="password_weak">弱</span></span>
                </div>
            </div>
            
            <div class="form-group">
                <label for="confirm-password" data-i18n="confirm_password">确认密码</label>
                <div class="password-input">
                    <input type="password" id="confirm-password" class="form-control" data-i18n-placeholder="confirm_password" placeholder="请再次输入密码" required>
                    <span class="toggle-password">
                        <img src="../images/eye.svg" alt="显示密码" class="eye-icon">
                    </span>
                </div>
            </div>
            
            <div class="form-options">
                <label class="remember-me">
                    <input type="checkbox" id="agree-terms" required>
                    <span class="checkbox-label"><span data-i18n="terms_agree">我同意</span> <a href="#" class="terms-link" data-i18n="terms_service">服务条款</a> <span data-i18n="and">和</span> <a href="#" class="terms-link" data-i18n="privacy_policy">隐私政策</a></span>
                </label>
            </div>
            
            <button type="submit" class="auth-button" id="register-button" data-i18n="register">注册</button>
            
            <div class="error-message" id="error-message"></div>
        </form>
        
        <div class="loading-overlay" id="loading-overlay">
            <div class="loading-spinner"></div>
            <p data-i18n="register_loading">注册中...</p>
        </div>
        
        <div class="auth-footer">
            <p><span data-i18n="has_account">已有账号?</span> <a href="login.html" class="login-link" data-i18n="login_now">立即登录</a></p>
        </div>
    </div>

    <script src="../js/i18n.js"></script>
    <script src="../js/api.js"></script>
    <script src="../js/register.js"></script>
</body>
</html> 